import http from "@/utils/http/http";

export default class gameSever {
    static settingTower() {
        return http.get("/api/tower/setting");
    }
    static settingKeno() {
        return http.get("/api/keno/setting");
    }
    static getDifficultyList() {
        return http.get("/api/tower/difficulty/list");
    }

    static getSkinList(params) {
        return http.get("/api/tower/skin/list",{params});
    }

    static createTowerOrder(data) {
        return http.post("/api/tower/order/create",data);
    }

    static pickTowerOrder(data) {
        return http.post("/api/tower/order/pick",data);
    }

    static getOrderItemList(params) {
        return http.get("/api/tower/orderItem/list",{params});
    }

    static takeOrder(data) {
        return http.post("/api/tower/order/take",data);
    }

    static getOrderAll(params) {
        return http.get("/api/tower/order/all",{params});
    }

    static getOrderList(params) {
        return http.get("/api/tower/order/list",{params});
    }

    static getKenoOrderAll(params) {
        return http.get("/api/keno/order/list",{params});
    }

    static getKenoOrderList(params) {
        return http.get("/api/keno/order/mylist",{params});
    }

    static createKeno(data) {
        return http.post("/api/keno/order/create",data);
    }

    static getKenoList(params) {
        return http.get("/api/keno/list",{params});
    }

    static getKenoItemList(params) {
        return http.get("/api/keno/itemList",{params});
    }

    static getKenoDifficultyList() {
        return http.get("/api/keno/difficulty/list");
    }

    static createThunder(data) {
        return http.post("/api/mine/order/create",data);
    }
}

